#pragma once

class ccirc
{
public:
	ccirc(unsigned int size);
	~ccirc(void);
	void addToBuffer(char inData);
	int readNext(unsigned char* outData);

private:
   bool isEmpty;

   unsigned int size;

   unsigned char * ptr_first;
   unsigned char * ptr_end;
   unsigned char * fifo_read_index;
   unsigned char * last_read_index;
   unsigned char * data;

};
